package me.chanjar.weixin.mp.bean.card;

import java.io.Serializable;
import java.util.List;

import com.google.gson.annotations.SerializedName;

import lombok.Data;
import me.chanjar.weixin.common.util.ToStringUtils;

/**
 * @author francis
 * @version 18/04/11
 */
@Data
public class WxMpCardBaseInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	@SerializedName("logo_url")
	private String logoUrl;

	@SerializedName("brand_name")
	private String brandName;

	@SerializedName("code_type")
	private String codeType;

	@SerializedName("title")
	private String title;

	@SerializedName("color")
	private String color;

	@SerializedName("notice")
	private String notice;

	@SerializedName("service_phone")
	private String servicePhone;

	@SerializedName("description")
	private String description;

	@SerializedName("date_info")
	private WxMpCardDateInfo dateInfo;

	private WxMpCardSku sku;

	@SerializedName("use_limit")
	private Integer useLimit;
	
	@SerializedName("get_limit")
	private int getLimit;

	@SerializedName("use_custom_code")
	private boolean useCustomCode;

	@SerializedName("bind_openid")
	private boolean bindOpenid;

	@SerializedName("can_share")
	private boolean canShare;

	@SerializedName("can_give_friend")
	private boolean canGiveFriend;

	@SerializedName("location_id_list")
	private List<Integer> locationIdList;

	@SerializedName("center_title")
	private String centerTitle;

	@SerializedName("center_sub_title")
	private String centerSubTitle;

	@SerializedName("center_url")
	private String centerUrl;

	@SerializedName("custom_url_name")
	private String customUrlName;

	@SerializedName("custom_url")
	private String customUrl;

	@SerializedName("custom_url_sub_title")
	private String customUrlSubTitle;

	@SerializedName("promotion_url_name")
	private String promotionUrlName;

	@SerializedName("promotion_url")
	private String promotionUrl;

	@SerializedName("source")
	private String source;
	
	
	//------小程序使用卡券字段-------
	/**
	 * 	自定义使用入口跳转小程序的user_name，格式为原始id+@app
	 */
	@SerializedName("custom_app_brand_user_name")
	private String customAppBrandUserName;
	
	/**
	 * 自定义使用入口小程序页面地址
	 */
	@SerializedName("custom_app_brand_pass")
	private String customAppBrandUserPass;
	
	/**
	 * 小程序的user_name
	 */
	@SerializedName("center_app_brand_user_name")
	private String centerAppBrandUserName;
	
	/**
	 * 自定义居中使用入口小程序页面地址
	 */
	@SerializedName("center_app_brand_pass")
	private String centerAppBrandPass;
	
	/**
	 * 小程序的user_name
	 */
	@SerializedName("promotion_app_brand_user_name")
	private String promotionAppBrandUserName;
	
	/**
	 * 自定义营销入口小程序页面地址
	 */
	@SerializedName("promotion_app_brand_pass")
	private String promotionAppBrandUserPass;
	
	/**
	 * 小程序的user_name
	 */
	@SerializedName("activate_app_brand_user_name")
	private String activateAppBrandUserName;
	
	/**
	 * 激活小程序页面地址
	 */
	@SerializedName("activate_app_brand_pass")
	private String activateAppBrandUserPass;
	
	
	@Override
	public String toString() {
		return ToStringUtils.toSimpleString(this);
	}
}
